using System;
using System.Collections.Generic;
using System.Text;

namespace Web.Core.Objects
{
    public class Product
    {
        #region Private Data
        int _productID, _categoryID, _numOrdered, _numInStock;
        string _image, _name, _description, _dateAdded;
        double _price;
        bool _visible, _special, _top, _promotion;

        public bool Promotion
        {
            get { return _promotion; }
            set { _promotion = value; }
        }
        #endregion

        #region Public Data
        public int ProductID
        {
            get { return _productID; }
            set { _productID = value; }
        }

        /*public int ManufacturerID
        {
            get { return _manufacturerID; }
            set { _manufacturerID = value; }
        }*/

        public int CategoryID
        {
            get { return _categoryID; }
            set { _categoryID = value; }
        }

        public int NumOrdered
        {
            get { return _numOrdered; }
            set { _numOrdered = value; }
        }

        public int NumInStock
        {
            get { return _numInStock; }
            set { _numInStock = value; }
        }

        public string Image
        {
            get { return _image; }
            set { _image = value; }
        }

        public string DateAdded
        {
            get { return _dateAdded; }
            set { _dateAdded = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        public double Price
        {
            get { return _price; }
            set { _price = value; }
        }

        public bool Visible
        {
            get { return _visible; }
            set { _visible = value; }
        }

        public bool Special
        {
            get { return _special; }
            set { _special = value; }
        }

        public bool Top
        {
            get { return _top; }
            set { _top = value; }
        }       

        #endregion

        public Product() { }

        public Product(int pID/*, int mID*/, int cID, int numOrder, int numInStock, string img, string date, double price, bool visible, bool special)
        {
            ProductID = pID;
            /*ManufacturerID = mID;*/
            CategoryID = cID;
            NumOrdered = numOrder;
            NumInStock = numInStock;
            Image = img;
            DateAdded = date;
            Price = price;
            Visible = visible;
            Special = special;
        }
    }    
}
